{include file="public/header" /}
<body>
<style>
    .cion{
        display: inline-block;
        width: 120px;
    }
</style>
<div class="page-container">
    <div id="treeui" class="demo-tree-more"></div>
</div>

{include file="public/footer" /}

<script type="text/javascript">

    layui.use(['tree', 'util'], function(){
        var tree = layui.tree
            ,layer = layui.layer
            ,util = layui.util;

        let testData  = <?php echo json_encode($data) ?>;

        let initEvent = function(){
            $(".layui-tree-main").on("click",function () {
               // alert(1);
            })
        }
        //无连接线风格
      let initTree = function(){
           tree.render({
               elem: '#treeui'
               ,data: testData
               // ,edit: ['add', 'update', 'del'] //操作节点的图标
               ,showLine: false,  //是否开启连接线
               click: function(obj){
               }
           });
       }
       $(initTree)

    });


</script>